#pragma once
#include "GameSystem.hpp"
#include "InputManager.hpp"
#include "Transform.hpp"

namespace Typhoon {
	class TransformRotator : public GameSystem
	{
	public:
		TransformRotator();
		~TransformRotator();

		float Speed;

		void SetInputManager(InputManager* input);
		void Update(float dt);

		float MaxPitch;


	protected:

		

	private:

		float xAngle;
		float yAngle;

		InputManager* input;

		void Down(InputManager::EventData event);
		void Up(InputManager::EventData event);

		bool isRotating;

		Vector2 startPosition;

	};
}
